package com.hmall.search.service;


import com.hmall.common.PageDTO;
import com.hmall.search.pojo.ItemDoc;
import com.hmall.search.pojo.RequestParams;

import java.util.List;
import java.util.Map;

public interface ISearchService {
    //自动补全
    List<String> getSuggestions(String prefix);

    //聚合
    Map<String, List<String>> filters(RequestParams requestParams);


    //搜索
    PageDTO<ItemDoc> search(RequestParams params);


    void saveItemById(Long id);

    void deleteItemById(Long id);
}
